#encoding: utf-8
Book.delete_all

# ------------------------- Arts -------------------------
#Book 1

Book.create!(
title: 'Underwater Dogs',
author: 'Seth Casteel', 
publisher: 'Little, Brown and Company',
rate: 0, 
rate_number: 0,
category: 'arts',
version: 1.0, 
barcode: '0316227706',
description: "
The exuberant, exhilarating photographs of dogs underwater that have become a sensation
From the water's surface, it's a simple exercise: a dog's leap, a splash, and then a wet head surfacing with a ball, triumphant.",
quantity: 1,
year: 2012, 
)

# Book 2
Book.create!(
title: 'Ansel Adams 2013 Wall Calendar',
author: 'Ansel Adams', 
publisher: 'Ansel Adams; Wal edition',
rate: 0, 
rate_number: 0,
category: 'arts',
version: 1.0, 
barcode: '0316204587',
description: "The 2013 Wall Calendar features thirteen exquisite, high-quality reproductions of Adams' photographs carefully selected and ordered to reflect the changing seasons. These stunning images-majestic mountain vistas, intimate nature studies, and landscapes of the American West-will delight all year long. A classic and popular now as ever, the Ansel Adams Wall Calendar is an elegant addition to any home or office.",
quantity: 1,
year: 2012, 
)

# Book 3
Book.create!(
title: 'Grace: A Memoir',
author: 'Grace Coddington', 
publisher: 'Random House',
rate: 0, 
rate_number: 0,
category: 'arts',
version: 1.0, 
barcode: '0812993357',
description: "
Beautiful. Willful. Charming. Blunt. Grace Coddington's extraordinary talent and fierce dedication to her work as creative director of Vogue have made her an international icon. Known through much of her career only to those behind the scenes, she might have remained fashion's best-kept secret were it not for The September Issue, the acclaimed 2009 documentary that turned publicity-averse Grace into a sudden, reluctant celebrity. Grace's palpable engagement with her work brought a rare insight into the passion that produces many of the magazine's most memorable shoots.",
quantity: 1,
year: 2012, 
)

# Book 4
Book.create!(
title: ' Sierra Club 2013 Engagement Calendar',
author: 'Sierra Club', 
publisher: 'Potter Style; Egmt edition',
rate: 0, 
rate_number: 0,
category: 'arts',
version: 1.0, 
barcode: '0307887081',
description: "
The most popular nature calendar ever published, this Sierra Club classic features wire-o binding, a week-by-week format, and 55 full-color images by some of America's leading nature photographers.",
quantity: 1,
year: 2012, 
)

# ------------------------- Novel -------------------------
#Book 1
Book.create!(
title: 'Gone With the Wind',
author: 'Margaret Mitchell', 
publisher: 'Macmillan Publishers',
rate: 0, 
rate_number: 0,
category: 'novel',
version: 1.0, 
barcode: '0025486500',
description: "
Gone with the Wind, first published in 1936, is a romance novel written by Margaret Mitchell, who received the Pulitzer Prize for Fiction for the book in 1937. The story is set in Clayton County, Georgia, and Atlanta during the American Civil War and Reconstruction, and depicts the experiences of Scarlett O'Hara, the spoiled daughter of a well-to-do plantation owner, who must use every means at her disposal to come out of the poverty she finds herself in after Sherman's March to the Sea. The book is the source of the 1939 film of the same name..",
quantity: 5,
year: 1936, 
)

#Book 2
Book.create!(
title: 'Twilight',
author: 'Stephenie Meyer', 
publisher: 'Little, Brown Books for Young Readers',
rate: 0, 
rate_number: 0,
category: 'novel',
version: 1.0, 
barcode: '0316038377',
description: "
The #1 New York Times bestseller is available for the first time in a mass market paperback edition, featuring a striking movie tie-in cover.
Bella Swan's move to Forks, a small, perpetually rainy town in Washington, could have been the most boring move she ever made. But once she meets the mysterious and alluring Edward Cullen, Bella's life takes a thrilling and terrifying turn. Up until now, Edward has managed to keep his vampire identity a secret in the small community he lives in, but now nobody is safe, especially Bella, the person Edward holds most dear. 
Deeply romantic and extraordinarily suspenseful, Twilight captures the struggle between defying our instincts and satisfying our desires. This is a love story with bite.",
quantity: 5,
year: 1936, 
)

#Book 2
Book.create!(
title: 'The Godfather',
author: 'Mario Puzo', 
publisher: 'NAL Trade; Reissue edition',
rate: 0, 
rate_number: 0,
category: 'novel',
version: 1.0, 
barcode: '0451205766',
description: "
More than thirty years ago, a classic was born. 
A searing novel of the Mafia underworld, The Godfather introduced readers to the first family of American crime fiction, the Corleones, 
and the powerful legacy of tradition, blood, and honor that was passed on from father to son. 
With its themes of the seduction of power, the pitfalls of greed, and family allegiance, 
it resonated with millions of readers across the world-and became the definitive novel of the virile, 
violent subculture that remains steeped in intrigue, in controversy, and in our collective consciousness.",
quantity: 2,
year: 2002, 
)

# ------------------------- Computer Book -------------------------

#Book 1
Book.create!(
title: 'HTML and CSS: Design and Build Websites',
author: 'Jon Duckett', 
publisher: 'Wiley',
rate: 4, 
rate_number: 0,
category: 'computer',
version: 4.0, 
barcode: '1118008189',
description: "
A full-color introduction to the basics of HTML and CSS from the publishers of Wrox! 
Every day, more and more people want to learn some HTML and CSS. Joining the professional web designers and programmers are new audiences who need to 
know a little bit of code at work (update a content management system or e-commerce store) and those who want to make their personal blogs more attractive. 
Many books teaching HTML and CSS are dry and only written for those who want to become programmers, which is why this book takes an entirely new approach.",
quantity: 2,
year: 2011, 
)

#Book 2
Book.create!(
title: 'Introduction to Algorithms',
author: 'Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, Clifford Stein', 
publisher: 'The MIT Press',
rate: 5, 
rate_number: 1,
category: 'computer',
version: 3, 
barcode: '0262033844',
description: "
Some books on algorithms are rigorous but incomplete; others cover masses of material but lack rigor. Introduction to Algorithms uniquely combines rigor and comprehensiveness. 
The book covers a broad range of algorithms in depth, yet makes their design and analysis accessible to all levels of readers. Each chapter is relatively self-contained and can be used as a unit of study. 
The algorithms are described in English and in a pseudocode designed to be readable by anyone who has done a little programming. The explanations have been kept elementary without sacrificing depth of coverage or mathematical rigor.", 
quantity: 2,
year: 2011, 
)

#Book 3
Book.create!(
title: 'Agile Web Development with Rails',
author: 'Dave Thomas , Sam Ruby', 
publisher: 'Pragmatic Bookshelf',
rate: 3, 
rate_number: 1,
category: 'computer',
version: 4, 
barcode: '1934356549',
description: "
Some books on algorithms are rigorous but incomplete; others cover masses of material but lack rigor. Introduction to Algorithms uniquely combines rigor and comprehensiveness. 
The book covers a broad range of algorithms in depth, yet makes their design and analysis accessible to all levels of readers. Each chapter is relatively self-contained and can be used as a unit of study. 
The algorithms are described in English and in a pseudocode designed to be readable by anyone who has done a little programming. The explanations have been kept elementary without sacrificing depth of coverage or mathematical rigor.",
quantity: 2,
year: 2011, 
)

#Book 3
Book.create!(
title: 'The Art of Computer Programming Volume 1-4',
author: 'Donald E. Knuth', 
publisher: 'Addison-Wesley Professional',
rate: 5, 
rate_number: 10,
category: 'computer',
version: 1, 
barcode: '0321751043',
description: "
Countless readers have spoken about the profound personal influence of Knuth work. 
Scientists have marveled at the beauty and elegance of his analysis, 
while ordinary programmers have successfully applied his 'cookbook' solutions to their day-to-day problems. 
All have admired Knuth for the breadth, clarity, accuracy, and good humor found in his books.
",
quantity: 5,
year: 2011, 
)

# ------------------------- Sport -------------------------
#Book 1
Book.create!(
title: 'Sports Illustrated Football Greatest',
author: 'Editors of Sports Illustrated', 
publisher: 'Sports Illustrated',
rate: 0, 
rate_number: 0,
category: 'sport',
version: 1, 
barcode: '1618930036',
description: "
This is the book to end all arguments-and to start many others. 
Who's the greatest quarterback of all time, Joe Montana or Tom Brady? Brett Favre? 
Who was the most dominate linebacker, Lawrence Taylor or Dick Butkus? 
Was Deion Sanders better than Ronnie Lott? 
Are the Packers of Steelers the greatest franchise ever? 
Sports Illustrated has polled its pro football experts to determine the Top 10 in more than 20 categories. 
The rankings appear alongside stirring photography and classic stories from SI's archives. 
This is the best of the NFL's best, or more simply, FOOTBALL'S GREATEST.",
quantity: 5,
year: 2012, 
)

#Book 2
Book.create!(
title: 'Badminton: Steps to Success',
author: 'Tony Grice', 
publisher: 'Sports Illustrated',
rate: 0, 
rate_number: 0,
category: 'sport',
version: 2.0, 
barcode: '0736072292',
description: "
Players clocking shuttlecocks at speeds of 200 miles per hour, new scoring rules, and nonstop action make badminton one of the fastest racket sports in the world. 
With Badminton: Steps to Success you will learn the skills and tactics to excel at the highest level.
Through detailed, fully illustrated instruction, you will develop precision, power, and finesse as you use this step-by-step guide to master serves, forehands, backhands, clears, drop shots, smashes, drives, and more.",
quantity: 2,
year: 2007, 
)
# ------------------------- Comic -------------------------
#Book 1
Book.create!(
title: 'DORAEMON HỌC TẬP - PHÂN SỐ & SỐ THẬP PHÂN',
author: ' Fujiko .F. Fujio, Kobayashi Kanjiro, Mitani Yukihiro.', 
publisher: 'NXB Kim Đồng',
rate: 5, 
rate_number: 1,
category: 'comic',
version: 1.0, 
barcode: '0736072292',
description: "
Trẻ em rất thích câu đố và những điều bí ẩn. 
Đó là vì quá trình suy luận ra kết quả, tức là suy nghĩ “Vì sao lại thế?” rất thú vị. Làm toán cũng vậy, nếu nắm bắt được cách suy luận để giải được bài toán thì môn này sẽ trở nên hấp dẫn, lôi cuốn.
Cuốn sách này không đưa ra những lời giải thích một chiều, mà các nhân vật trong truyện sẽ hóa thân thành độc giả, giải đố sai, mang nghi vấn về từng vấn đề và đưa ra những lí giải hết sức hồn nhiên... 
Qua những tình tiết mang đầy chất truyện tranh đó, các em sẽ hiểu vấn đề nhanh và dễ hơn. Ngoài ra sách cũng cung cấp đầy đủ những kiến thức cơ bản, nền tảng quan trọng trong bộ môn toán mà các em cần nắm chắc.",
quantity: 10,
year: 2012, 
)

